package team.pwy.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import team.pwy.mapper.VipOrderMapper;
import team.pwy.pojo.entity.VipOrder;

@Service
@Transactional
public class VipOrderServiceImpl implements VipOrderService{

    @Autowired
    private VipOrderMapper orderMapper;

    @Override
    public Integer addOrder(Integer userId,String orderNumber,String orderPrice,Integer secId) {
        return orderMapper.addOrder(userId,orderNumber,orderPrice,secId);
    }

    @Override
    public VipOrder findByOrdNum(String orderNumber) {
        return orderMapper.findByOrdNum(orderNumber);
    }

    @Override
    public Integer updateOrderSta(Integer userId) {
        return orderMapper.updateOrderSta(userId);
    }

}
